/**
 * Created by nengjian on 2017/4/17.
 */
'use strict';

module.exports = (ctx) => {
    return function* (next) {

        if(!/.js.map.*$/.test(this.request.url)){
            yield next;
        }else{

        }
        // var _url=this.request.url
        // if(_url.substring(_url.lastIndexOf("/")).indexOf(".")<0){
        //     console.log("bodyfilter",this.request.url);
        //     yield next;
        // }else{
        //     if (this.acceptJSON) this.body = { error: 'Not Found' };
        //     else this.body = '<h1>Page Not Found.</h1>';
        // }

    };
};
